package com.xzy.service.impl;

import com.xzy.custom.Page;
import com.xzy.entities.BookType;
import com.xzy.entities.Record;
import com.xzy.mapper.RecordMapper;
import com.xzy.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO
 *
 * @author XiangZhongyi
 * ClassName: RecordServiceImpl
 * date: 2022/2/20 12:08
 */
@Service
public class RecordServiceImpl implements RecordService {

    @Autowired
    private RecordMapper recordMapper;

    @Override
    public void save(Record log) {
        recordMapper.save(log);
    }

    @Override
    public Integer findRecordCount(Page page,String name) {
        return recordMapper.findRecordCount(page,name);
    }

    @Override
    public List<Record> findAllRecord(Page page,String name) {
        return recordMapper.findAllRecord(page,name);
    }
}
